home *** CD-ROM | disk | FTP | other *** search
- *******************************************************************************
- * PROGRAM: View.mnu
- *
- * WRITTEN BY: Borland Samples Group
- *
- * DATE: 1/94
- *
- * UPDATED: 5/95
- *
- * REVISION: $Revision: 1.34 $
- *
- * VERSION: Visual dBASE
- *
- * DESCRIPTION: This is a menu file used by all view forms in the Musical
- * Methods application. It allows seeing information in different
- * orders (depending on which view you are running), setting
- * filters, searching, printing reports, and bringing up as many
- * possible views as you like. All these views are kept track of
- * in the Windows menu.
- *
- * PARAMETERS: F (parent form)
- *
- * CALLS: None
- *
- * USAGE: F.MenuFile = "View.mnu"
- *
- *******************************************************************************
- #include "Music.h"
- #include <Messdlg.h>
-
- ** END HEADER -- do not remove this line*
- * Generated on 05/22/95
- *
- Parameter FormObj
- NEW VIEWMENU(FormObj,"Root")
- CLASS VIEWMENU(FormObj,Name) OF MENUBAR(FormObj,Name)
-
-
- DEFINE MENU FILE OF THIS;
- PROPERTY;
- Text "&File"
-
- DEFINE MENU EXIT OF THIS.FILE;
- PROPERTY;
- Shortcut "CTRL-Q",;
- Text "E&xit",;
- OnClick CLASS::EXITMUSIC
-
- DEFINE MENU VIEW OF THIS;
- PROPERTY;
- Text "&View"
-
- DEFINE MENU MUSIC OF THIS.VIEW;
- PROPERTY;
- StatusMessage "Display available musical items.",;
- Text "&Music",;
- OnClick {;do MusiView.wfm},;
- Enabled .F.
-
- DEFINE MENU CATEGORIES OF THIS.VIEW;
- PROPERTY;
- StatusMessage "Display the musical categories available.",;
- Text "&Categories",;
- OnClick {;do Categors.wfm},;
- Enabled .F.
-
- DEFINE MENU RANKINGS OF THIS.VIEW;
- PROPERTY;
- StatusMessage "Display the sales rankings of the current musical items.",;
- Text "&Rankings",;
- OnClick {;do Priorits.wfm},;
- Enabled .F.
-
- DEFINE MENU MEDIA_TYPES OF THIS.VIEW;
- PROPERTY;
- StatusMessage "Display the media types available.",;
- Text "M&edia Types",;
- OnClick {;do Configs.wfm},;
- Enabled .F.
-
- DEFINE MENU SEPARATEVIEWS OF THIS.VIEW;
- PROPERTY;
- Separator .T.
-
- DEFINE MENU ORGANIZATION OF THIS.VIEW;
- PROPERTY;
- StatusMessage "Change viewing order of displayed information.",;
- Text "&Organization"
-
- DEFINE MENU RANK OF THIS.VIEW.ORGANIZATION;
- PROPERTY;
- StatusMessage "Order items by Rank.",;
- Text "&Rank",;
- OnClick CLASS::RANK_ONCLICK,;
- Checked .T.
-
- DEFINE MENU ARTIST OF THIS.VIEW.ORGANIZATION;
- PROPERTY;
- StatusMessage "Order items by Artist.",;
- Text "&Artist",;
- OnClick CLASS::ARTISTS_ONCLICK
-
- DEFINE MENU TITLE OF THIS.VIEW.ORGANIZATION;
- PROPERTY;
- StatusMessage "Order items by Title",;
- Text "&Title",;
- OnClick CLASS::TITLES_ONCLICK
-
- DEFINE MENU SEPARATEVIEWS2 OF THIS.VIEW;
- PROPERTY;
- Text "Separateviews2",;
- Separator .T.
-
- DEFINE MENU BROWSE OF THIS.VIEW;
- PROPERTY;
- StatusMessage "View the items in Browse mode.",;
- Text "&Browse",;
- OnClick CLASS::BROWSE_ONCLICK
-
- DEFINE MENU FILTER OF THIS.VIEW;
- PROPERTY;
- StatusMessage "Select a group of items to view.",;
- Text "&Filter",;
- OnClick CLASS::FILTER_ONCLICK
-
- DEFINE MENU SEARCH OF THIS;
- PROPERTY;
- Text "&Search"
-
- DEFINE MENU SEARCH_FOR OF THIS.SEARCH;
- PROPERTY;
- Shortcut "CTRL-S",;
- Text "&Search for...",;
- OnClick CLASS::SEARCH_ONCLICK
-
- DEFINE MENU SKIP OF THIS.SEARCH;
- PROPERTY;
- Shortcut "CTRL-K",;
- Text "S&kip...",;
- OnClick CLASS::SKIP_ONCLICK
-
- DEFINE MENU OPTIONS OF THIS;
- PROPERTY;
- Text "&Options"
-
- DEFINE MENU REPORT__TOP_TEN_ARTISTS OF THIS.OPTIONS;
- PROPERTY;
- StatusMessage "View report of top ten artists.",;
- Text "&Report -- Top Ten Artists",;
- OnClick CLASS::REPORT
-
- DEFINE MENU WINDOWS OF THIS;
- PROPERTY;
- Text "&Windows"
-
- DEFINE MENU HELP OF THIS;
- PROPERTY;
- Text "Help"
-
- DEFINE MENU CONTENTS OF THIS.HELP;
- PROPERTY;
- Text "&Contents",;
- OnClick {;help},;
- HelpFile "Music.hlp"
-
- DEFINE MENU SEARCH OF THIS.HELP;
- PROPERTY;
- HelpId " ",;
- Text "&Search...",;
- OnClick CLASS::SEARCHHELP,;
- HelpFile "Music.hlp"
-
- DEFINE MENU ABOUT OF THIS.HELP;
- PROPERTY;
- Text "&About...",;
- OnClick CLASS::ABOUT
-
-
- procedure ExitMusic
-
- * This is the last procedure to be executed before the program completes.
- *******************************************************************************
-
-
- if _app.framewin.text = MUSIC_APP_TITLE && If whole application running
- trackWindows.RestoreEnvironment() && Must restore env before all
- && windows close -- otherwise
- && will leave session
- trackWindows.DeleteAllWindows() && Close and release all winds
- release trackWindows && Release public variable
- close procedure Music.prg
- else
- form.Release()
- endif
-
-
-
- *******************************************************************************
-
- procedure Rank_OnClick
-
- * Display form in Rank order
- *******************************************************************************
-
- CallShowRankView(form) && Procedure in Music.prg
-
-
- *******************************************************************************
-
- procedure Artists_OnClick
-
- * Display form in Artists Order
- *******************************************************************************
-
- CallShowArtistsView(form) && Procedure in Music.prg
-
-
- *******************************************************************************
-
- procedure Titles_OnClick
-
- * Display form in Titles Order
- *******************************************************************************
-
- CallShowTitlesView(form) && Procedure in Music.prg
-
-
- *******************************************************************************
-
- procedure Browse_OnClick
-
- * Display form in Browse format
- *******************************************************************************
-
- BrowseEdit(form) && Procedure in Music.prg
-
-
- *******************************************************************************
-
- procedure Filter_OnClick
-
- * Set up filter form
- *******************************************************************************
-
- FilterView(form) && Procedure in Music.prg
-
-
- *******************************************************************************
-
- procedure Search_OnClick
-
- * Search for an item. Brings up a dialog for specifying an item to searh for.
- *******************************************************************************
-
- SearchItems(form) && Procedure in Music.prg
-
-
- *******************************************************************************
-
- procedure Skip_OnClick
-
- * Skip to a specified record. Brings up a dialog for specifying how far
- * to skip.
- *******************************************************************************
-
- SkipItems(form) && Procedure in Music.prg
-
-
- *******************************************************************************
-
- procedure Report
-
- * Displays Crystal report of top 10 artists.
- *******************************************************************************
-
- create session
- set lock off
- report form Top10Ar && Top 10 Artists
-
-
-
-
- *******************************************************************************
-
- procedure SearchHelp
-
- * Brings up Help in "Search" mode
- *******************************************************************************
- private x
-
- x = " "
- help &x
-
-
- *******************************************************************************
-
- procedure About
-
- * Brings up "About" dialog, which displays information about this app.
- *******************************************************************************
- do About.wfm with .T. && Open form modally
-
-
-
-
-
- ************************* Utility Procedures **********************************
-
- *******************************************************************************
-
- Procedure AssignWindowMenu
-
- * Make the Windows menu item of this menu display all active windows, with
- * the current one in focus checked.
- *******************************************************************************
-
- this.windowMenu = this.Windows
-
-
-
- ENDCLASS
-
-
-
-
-